import request from "../utils/request.js";

export const buildCourse = (data) => {
    return request({
        url: '/courseTeacher/build',
        method: 'post',
        data: data
    })
}

export const joinCourseOfTeacher = (data) => {
    return request({
        url: '/courseTeacher/join',
        method: 'post',
        data: data
    })
}

export const deleteCourseOfTeacher = (data) => {
    return request({
        url: '/courseTeacher/delete/' + data.id,
        method: 'delete',
        params: data
    })
}

export const getCourseListOfTeacher = (data) => {
    return request({
        url: '/courseTeacher/list',
        method: 'get',
        params: data
    })
}

export const modifyCourseState = (data) => {
    return request({
        url: '/courseTeacher/modifyState',
        method: 'post',
        params: data
    })
}
